const token = {
    setToken(token) {
        return localStorage.setItem('token', token);
    },
    getToken() {
        return localStorage.getItem('token');
    },
    removeToken() {
        return localStorage.removeItem('token');
    },
    setStorage(item, value) {
        return localStorage.setItem(item, JSON.stringify(value));
    },
    getStorage(item) {
        return JSON.parse(localStorage.getItem(item));
    },
    removeStorage(item) {
        return localStorage.removeItem(item);
    },
    clearStorage() {
        return localStorage.clear();
    }
}
export default token;
